package com.sec.moveFile.document.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;
import java.time.Instant;

/**
 * @author 68300119
 * @Date 2021/5/12
 **/
@Entity
@Table(name = "srm_sys_doc_move")
public class SystemDocMoveDO {

    @javax.persistence.Id
    @GeneratedValue(generator = "uuid2")
    @GenericGenerator(name = "uuid2", strategy = "com.sec.moveFile.config.NonDividingUUIDGenerator")
    @Column(length = 32)
    private String id;

    @Column(name = "doc_id")
    private String docId;

    @Column(name = "move_flag")
    private Boolean moveFlag;

    @Column(name = "check_flag")
    private Boolean checkFlag;

    @Column(name = "check_log")
    private String checkLog;

    @Column(name = "log")
    private String log;

    @CreatedDate
    @Column(name = "CREATED_TS", nullable = false)
    @JsonIgnore
    private Instant createdDate = Instant.now();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public Boolean getMoveFlag() {
        return moveFlag;
    }

    public void setMoveFlag(Boolean moveFlag) {
        this.moveFlag = moveFlag;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    public Instant getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Instant createdDate) {
        this.createdDate = createdDate;
    }

    public Boolean getCheckFlag() {
        return checkFlag;
    }

    public void setCheckFlag(Boolean checkFlag) {
        this.checkFlag = checkFlag;
    }

    public String getCheckLog() {
        return checkLog;
    }

    public void setCheckLog(String checkLog) {
        this.checkLog = checkLog;
    }
}
